home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 1 / Amiga Tools.iso / egs-tools / egs_dev-disk / egsincludes / egsrequest.h < prev   
Encoding:
C/C++ Source or Header  |  1994-06-06  |  5.5 KB  |  177 lines

  1. #ifndef EGS_EGSREQUEST_H
  2. #define EGS_EGSREQUEST_H
  3.  
  4. /***************************************************************************\
  5. *
  6. *  $
  7. *  $ FILE     : egsrequest.h
  8. *  $ VERSION  : 1
  9. *  $ REVISION : 9
  10. *  $ DATE     : 08-Dec-93 12:45
  11. *  $
  12. *  $ Author   : mvk
  13. *  $
  14. *
  15. *****************************************************************************
  16. *                                                                           *
  17. * (c) Copyright 1990/94 VIONA Development                                   *
  18. *     All Rights Reserved                                                   *
  19. *                                                                           *
  20. \***************************************************************************/
  21.  
  22. #ifndef         EXEC_TYPES_H
  23. #include        <exec/types.h>
  24. #endif
  25. #ifndef         EGS_EGSINTUI_H
  26. #include        <egs/egsintui.h>
  27. #endif
  28. #ifndef         EGS_EGSGADBOX_H
  29. #include        <egs/egsgadbox.h>
  30. #endif
  31. #ifndef         EGS_EGB_GBSCROLLBOX_H
  32. #include        <egs/egb/gbscrollbox.h>
  33. #endif
  34.  
  35. #define ER_USER_GADID_MIN  0x100000
  36. #define ER_USER_GADID_MAX  0x1FFFFF
  37.  
  38. #define ER_REQ_OK         0
  39. #define ER_REQ_FINISHED   1
  40. #define ER_NO_REQWINDOW   2
  41. #define ER_REQ_CANCELED   3
  42.  
  43. #define ER_AUTO_CLOSE     1
  44.  
  45.  
  46. typedef struct ER_ReqContext *ER_ReqContextPtr;
  47. typedef struct ER_Request *ER_RequestPtr;
  48.  
  49. struct ER_ReqContext{
  50.           ER_RequestPtr        First,Last;
  51. };
  52.  
  53.  
  54. struct ER_Request{
  55.          APTR                 ObjectKey;
  56.          LONG                 Type;
  57.          ER_ReqContextPtr     Context;
  58.          ER_RequestPtr        Next,Prev;
  59.          UBYTE                Error;
  60.          UBYTE                Pad1;
  61.          UWORD                Pad2;
  62.          APTR                 UserData;
  63.          LONG                 TriMics;
  64.          LONG                 TriSecs;
  65.          LONG                 OldMics;
  66.          LONG                 OldSecs;
  67.          LONG                 NewMics;
  68.          LONG                 NewSecs;
  69.          char                *Title;
  70.          EI_NewWindowPtr      Nw;
  71.          EB_GadContext        Con;
  72.          EB_GadBoxPtr         Root;
  73.          EI_MenuPtr           Menu;
  74.          APTR                 reserved;
  75.          struct MsgPort      *Port;
  76.          EI_ScreenPtr         Screen;
  77.          EI_WindowPtr         RWindow;
  78.          LONG                 Flags;
  79.          APTR                 Build;
  80.          APTR                 Refresh;
  81.          APTR                 Handle;
  82.          APTR                 AddMenu;
  83.          APTR                 FindGadgets;
  84.          APTR                 SaveGadgets;
  85.          APTR                 RestGadgets;
  86.          APTR                 InitGadgets;
  87. };
  88.  
  89. struct ER_TextList{
  90.          struct List          List;
  91.          UWORD                Pad;
  92.          APTR                 Con;
  93. };
  94.  
  95.  
  96. struct ER_FileRequest {
  97.          struct ER_Request    Req;
  98.          UWORD                NameLen;
  99.          char                 Name[32];
  100.          UWORD                Pad0;
  101.          UWORD                PathLen;
  102.          char                 Path[100];
  103.          UWORD                Pad1;
  104.          UWORD                PattLen;
  105.          char                 Pattern[100];
  106.          UWORD                Pad2;
  107.          struct EB_InfoBox    Fnumbox,Dnumbox;
  108.          struct ER_TextList   Files,Volumes;
  109.          EGB_ScrollGadPtr     FileGad,VolGad;
  110.          EI_StringGadPtr      PathGad,NameGad,PattGad;
  111.          UWORD                ONameLen;
  112.          char                 OName[32];
  113.          UWORD                Pad3;
  114.          UWORD                OPathLen;
  115.          char                 OPath[100];
  116.          UWORD                Pad4;
  117.          UWORD                OPattLen;
  118.          char                 OPattern[100];
  119.          UWORD                Pad5;
  120.          struct Node         *OldFile;
  121.          UBYTE                CursLeft;
  122.          UBYTE                Pad6;
  123.          UWORD                Pad7;
  124.          struct Node         *LeftCurs,*RightCurs;
  125. };
  126.  
  127. typedef struct ER_FileRequest *ER_FileRequestPtr;
  128.  
  129. struct   ER_ScrModeRequest {
  130.                      struct ER_Request Req;
  131.                      APTR              Reserved1;
  132.                      APTR              Reserved2;
  133.                      char              *ScreenMode;
  134.                      WORD              Width;
  135.                      WORD              Height;
  136.                      LONG              Depths;
  137.                      WORD              Depth;
  138.                      WORD              Pad0;
  139. };
  140.  
  141. typedef struct  ER_ScrModeRequest *ER_ScrModeReqPtr;
  142.  
  143. #define ER_sALL              0x00000001
  144. #define ER_sROMFONT          0x00000002
  145. #define ER_sDISKFONT         0x00000004
  146. #define ER_sNONPROPORTIONAL  0x00000008
  147. #define ER_sPROPORTIONAL     0x00000010
  148. #define ER_sFONTSTYLES       0x00000020
  149. #define ER_sDISPLAYIMMEDIATE 0x00000040
  150. #define ER_sLAST             0x00000080
  151.  
  152.  
  153. struct ER_FontRequest {
  154.                      struct ER_Request    Req;
  155.                      APTR                 Reserved1;
  156.                      APTR                 Reserved2;
  157.                      WORD                 ExtReqFlags;
  158.                      WORD                 Pad0;
  159.                      struct TextAttr      Font;
  160. };
  161. typedef struct  ER_FontRequest *ER_FontReqPtr;
  162.  
  163.  
  164. struct ER_SimpleRequest {
  165.                      struct ER_Request    Req;
  166.                      APTR                 Texts;
  167.                      APTR                 Selects;
  168.                      WORD                 Selected;
  169.                      WORD                 Pad0;
  170. };
  171.  
  172. typedef struct ER_SimpleRequest *ER_SimpleReqPtr;
  173.  
  174.  
  175. #endif  /* EGS_EGSREQUEST_H */
  176.  
  177.